package trading.algo.BullToBearTask;

import java.util.TimerTask;

import trading.bo.IBAccessorBO;

public class GetOptionPriceTask extends TimerTask {
	
	private IBAccessorBO ibAccessorBO;
	private String ticker;
	private String expiration;
	private double strikePrice;
	private String right;
	
	public GetOptionPriceTask(IBAccessorBO ibAccessorBO, String ticker, String expiration, double strikePrice, String right) {
		this.ibAccessorBO = ibAccessorBO;
		this.ticker = ticker;
		this.expiration = expiration;
		this.strikePrice = strikePrice;
		this.right = right;
	}

	@Override
	public void run() {
		this.ibAccessorBO.reqCurrentOptionPrice(ticker, expiration, strikePrice, right);
	}

}
